package top.aicats.redis.baseKnowledge;

import redis.clients.jedis.Jedis;

public class RedisTest {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("192.168.1.120", 6379);

        float size = 1000;
        for (int  i = 0; i < size; i++) {
            jedis.pfadd("hill", "hll-"+ i);
        }
        long total = jedis.pfcount("hill");
        System.out.printf("统计个数：" + total);
        jedis.close();

    }
}
